home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 9
/
Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO
/
032a
/
perform.doc
/
PERFORM.DOC
Wrap
Text File
|
1993-04-27
|
16KB
|
335 lines
by Dr. W. Curtiss Priest
Center for Information, Technology and Society
Lexington, MA 02173
Internet: bmslib@mitvma.mit.edu
Voice: 617-862-7763
4/93
_______________________________________________________________________
***********************************************************************
This is overview DOC file for:
SYSPROF3 ZIP 71680
PROFILER ZIP 20224
PRF ZIP 38656
SCOPE105 ZIP 46848
BIGBRO10 ZIP 4608
EVALCACH ZIP 42240
_______________________________________________________________________
***********************************************************************
Use BIGBRO to watch 112 open's and creates
[useful to see what temporary file writes are done to
determine CD-ROM feasiblity]
Use EVALCACH to watch 8196 disk I/O events and produce summary table
[if you program PASCAL you can use DumpCache procedure (that is
not enabled in EVAL.EXE) to print out the 8196 I/O events
by head, cylinder and sector]
[or use procedure SnoopObject.Dump
contained in SNOOP.PAS (Pascal interface to SNOOP.COM
disk logging program)]
Use SYSPROF3 for all INT activity
Use PROFILER for each active area of 640K memory
Use PRF with C code to track activity by code segment
Use SCOPE105 for symbolic program performance info
_______________________________________________________________________
***********************************************************************
Highlights of help files follow:
_______________________________________________________________________
***********************************************************************
SCOPE105.ZIP 46848 04-12-93 10:57p
The CodeScope - Version 1.05 Page 1
1.0 What Is The CodeScope ?
The CodeScope is a symbolic program execution profiler
designed to enable the identification of heavily used or slow
portions of a program, or to gain a better understanding of
where a program spends its time. Some of the features
provided by The CodeScope are:
* Adjustable execution sampling rates from 11 to 99
milliseconds.
* Dynamic control of execution sampling via "hot keys".
* "Full System" or "Program Only" execution sampling.
* Three execution analysis reports, including two
histograms.
* Support for character, extended ASCII and ANSI color
graphics histograms.
* Full support for PUBLIC symbols and source code line
numbers, via MAP file from DOS LINK and other Linkage
Editors.
_______________________________________________________________________
***********************************************************************
SYSPROF3.ZIP 71680 04-12-93 5:15p
This archive contains code and executables for an enhanced version of the
system profiler described in issue 47 of Micro Cornucopia magazine. The
subarchive ORIGINAL contains the original source code.
To use, install SYS_PROF by simply typing its name. It will become
memory-resident but inactive. Use PROFCTRL to turn it on or off:
PROFCTRL status report whether SYS_PROF is active
PROFCTRL on activate profiling
PROFCTRL off deactivate profiling
PROFCTRL report <file> write the accumulated counts to the file
PROFCTRL zero reset the counts
Number of Number of Percent of
Service Occurrences Timer ticks Total Time
PRINT SCREEN - INTERRUPT 5H
1 34 0.20
VIDEO BIOS - INTERRUPT 10H
00 - Set Mode 1 1 0.01
02 - Set Cursor Position 2 0 0.00
08 - Read Character and Attribute 2 0 0.00
0C - Write Dot 64000 609 3.66
0D - Read Dot 64050 610 3.66
0E - Write TTY 109 2 0.01
0F - Get Mode 1 0 0.00
TOTAL 128165 1222 7.34
DISK SERVICES - INTERRUPT 13H
02 - Read Sectors 55 37 0.22
KEYBOARD BIOS - INTERRUPT 16H
00 - Read Character 2 0 0.00
01 - Character Waiting? 58 0 0.00
TOTAL 60 0 0.00
PRINTER BIOS - INTERRUPT 17H
00 - Send Byte 48310 70 0.42
DOS FUNCTIONS - INTERRUPT 21H
08 - Keyboard Input No Echo 2 0 0.00
19 - Get Default Drive 4 0 0.00
1A - Set Disk Transfer Area 2 0 0.00
25 - Set Interrupt Vector 52 0 0.00
29 - Parse Filename 6 0 0.00
30 - Get DOS Version Number 4 0 0.00
35 - Get Interrupt Vector 25 0 0.00
37 - Service 55 2 0 0.00
38 - Get Country-Dependent Info 2 0 0.00
3D - Open File, Handle Mode 2 0 0.00
3E - Close File, Handle Mode 32 0 0.00
3F - Read from File or Device 4 0 0.00
40 - Write to File or Device 12 1 0.01
42 - Move File Pointer 4 0 0.00
44 - I/O Control for Devices 10 0 0.00
47 - Get Default Directory 4 0 0.00
48 - Allocate Memory 4 0 0.00
49 - Free Memory 2 0 0.00
4A - Modify Allocated Memory 2 0 0.00
4B - EXEC 2 15284 91.80
4C - Terminate Process 2 0 0.00
4D - Get Return Code 2 0 0.00
4E - Find First File, Handle Mode 2 0 0.00
4F - Find Next File, Handle Mode 6 0 0.00
TOTAL 189 15285 91.81
Total time: 16649 timer ticks
914 seconds
_______________________________________________________________________
***********************************************************************
PROFILER.ZIP 20224 04-12-93 10:37p
This is a profiler which appeared in the Nov. 1986 issue of PC
Tech Journal. See the article by Ralph Brickner for more details on the
program. This archived file contains a sample program PROFILE.BAT which
profiles the DOS utility CHKDSK.COM. To run the sample, type
profile chkdsk.com [drive:]
This screen will show where the program is spending its time through
a "hit count" for each active segment in the 640K address space. Each
count is 1/18.2 seconds. The next piece of information is a histogram
of the data listed in the first screen. Finally, one can zoom in on
a single segment of code. One must specify the number of bins desired and
whether or not to list any empty bins. One usually chooses a small number of
bins and displays all of them.
_______________________________________________________________________
***********************************************************************
PRF .ZIP 38656 04-12-93 10:50p
This is a small package to help you decide where a
small or compact model program running under MSDOS is
spending its time..
It is limited. It does not take into account time spent
in system calls from a routine, it can only handle a single
code segment. That said it can probably help you direct your
efforts to those computationally intensive parts of your program
that need to be tightened up.
To use the package a TSR routine (prf.exe) needs to be installed.
i.e. at the MSDOS prompt (or in autoexec.bat) type "PRF" (no quotes).
Within your program you will need to call two routines. These should
be invoked before and after the bits you want to profile.
Here is a sample program.
------------------------------
#include <stdio.h>
#include "prfifl.h"
#include <dos.h>
long TT()
_TT 324 80.20%
_main 47 11.63%
_PRF_ISINST 0 0.00%
_PRF_FN 0 0.00%
_PRFstart 0 0.00%
_PRFstop 0 0.00%
__astart 0 0.00%
__cintDIV 0 0.00%
__amsg_exit 0 0.00%
__cinit 0 0.00%
_exit 0 0.00%
__exit 0 0.00%
__ctermsub 0 0.00%
__FF_MSGBAN 0 0.00%
__fptrap 5 1.24%
__chkstk 4 0.99%
_______________________________________________________________________
***********************************************************************
EVALCACH.ZIP 42240 04-14-93 2:52p
Load SNOOP.COM, operate program, then run EVAL.EXE
EVAL.PAS/EVAL.EXE -- Disk Cache Strategy Performance Evaluator
This program estimates the effectiveness of disk caching strategies using
a log of up to 8196 actual disk transactions from your first physical hard
disk. The TSR program SNOOP.COM maintains the log in memory.
This version of the program compares the performance of a simple write-
through cache to the performance you'd get from no cache at all. It bases
its speed estimates on hard disk characteristics you enter, rather than on
the actual characteristics of your machine, so you can see how drive
characteristics affect both system and cache performance. You can test your
own cache strategies by defining objects of the type CacheStrategy. You can
also observe the performance effects of cache size. As a simple experiment,
try reducing the cache size to 64K or 128K and press G to simulate the
results. You should notice a dramatic drop in cache performance.
The following screen appears in EVAL.EXE:
┌[Disk Cache Strategy Performance Evaluator -- Copyright L. Brett Glass 1989]──┐
│ │
│ ███████████████████████████████████████████████████████████████████████████ │
│ │
│ Estimated time without cache = 0.19 sec │
├──────────────────────────────────────────────────────────────────────────────┤
│ │
│ ███████████████████████████████████████████████████████████████████████████ │
│ │
│ Estimated time with simple write-through cache = 0.19 sec │
├──────────────────────────────────────────────────────────────────────────────┤
│ -- Disk Drive and Cache Parameters -- │
│ │
│ T)rack-to-track seek (adjacent): 5 ms C)ache size : 1024 Kbytes │
│ A)verage seek time (all tracks): 40 ms │
│ N)umber of cylinders: 615 │
│ R)otational speed: 3600 RPM │
│ D)isk heads: 4 P)rogram information │
│ S)ectors per track: 17 G)o (recalculate estimates) │
│ I)nterleave factor: 1 : 1 Q)uit program │
├──────────────────────────────────────────────────────────────────────────────┤
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
_______________________________________________________________________
***********************************************************************
BIGBRO10.ZIP 4608 04-13-93 11:49a
BIGBRO version 1/0 by E de Neve
╓─ ▀█▀▌─── ▀█▀▌────────────────────────────────────────────────┐
║ █▀▀▌IG █▀▀▌ROTHER DOCUMENTATION │
╚═ ▀▀▀▀ ══ ▀▀▀▀ ═══════════════════════════════════════════════┘
Big Brother is a TSR utility using less than 5 Kbyte of the PC's
memory to store a spy procedure and a small buffer. It is able to register
the filenames used by several MS-DOS functions whenever your PC is about to
read or write a file, or execute a program.
Save disk space by pruning working copies of your software down to their
bare essentials. And with software that doesn't run properly you'll be able to
see for what (missing?) files it was looking, and where/when it was searching.
Big Brother can also help you untangle the messy relations between all
those batch/command/execute/overlay/install/configure/library/device/etc.
files that constitute the 'user friendly' software packages these days.
Usage: display help screen : BIGBRO
installation : BIGBRO INSTALL
controlling : BIGBRO [OPTION]
Options: ALERT - Activate the memory resident SPY procedure.
SLEEP - Disable it.
REPORT - Generate a report of files & entry times.
FLUSH - Empty the internal filename buffer.
The filename buffer holds a maximum of 112 entries; when
full, Big Brother will automatically enter SLEEP mode until
you do a FLUSH and then reactivate it with ALERT.
To generate a report FILE, type BIGBRO REPORT > [ReportfileName]
The REPORT option displays data about every file operation Big Brother
registrated while in ACTIVE mode. The four different columns contain:
(Path-)Name: The filenames; preceded by a drive ID and complete
directory path name ONLY if :
a) it was not on the DEFAULT drive & directory.
b) it was opened with a PATH/COMSPEC environment string.
c) called by the EXECUTE function.
Function: Three different DOS function calls are linked to
the memory resident SPY procedure :
1) Execute - always a .COM or .EXE program EXECUTED,
either by you, a batch (.bat) file or an active program.
2) Open - any file OPENED for reading, or a
batch file opened for executing.
3) Create - any file CREATED; a new file,
or an old one being written over.
Result: Only if an ERROR occurred, an E will appear; it
usually indicates a 'FILE NOT FOUND' error.
Time on Entry: The exact starting time of the DOS function.
Big Brother always reports the current time just below
its logo for comparison with these entry times.
* Big Brother Version 1.0 - september 5th, 1990 *
procedure SnoopObject.Dump(var f : Text);
SNOOP.PAS -- Pascal interface to SNOOP.COM disk logging program